<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组使用和遍历</title>
    <script type="text/javascript">
        var cars = ["Audi", "BMW", "Volvo", 100, 1.1, true];
        //遍历
        console.log("数组的长度 = "+cars.length);
        for (var i = 0; i <cars.length ; i++) {
            console.log(cars[i]);//log方法会自动换行
        }
    </script>
</head>
<body>

</body>
</html>